//
//  ImageContentCell.m
//  ZYHome
//
//  Created by Teplot_03 on 16/7/6.
//  Copyright © 2016年 Teplot_01. All rights reserved.
//

#import "ImageContentCell.h"

@interface ImageContentCell ()

/**
 *  显示图片的ImageView
 */
@property (nonatomic, strong) UIImageView *imgV;

@end

@implementation ImageContentCell

- (void)setup {
    [super setup];
    [self.contentView addSubview:self.imgV];
    
    _imgV.sd_layout.leftSpaceToView(self.deleteBtn,5)
    .leftSpaceToView(self.deleteBtn,10)
    .topSpaceToView(self.contentView,5)
    .bottomSpaceToView(self.contentView,5)
    .widthIs(70);
    
}

#pragma mark - lazy load

- (UIImageView *)imgV {
    if (!_imgV) {
        _imgV = [UIImageView new];
        _imgV.backgroundColor = [UIColor greenColor];
    }
    return _imgV;
}

- (void)setImg:(UIImage *)img {
    _img = img;
    self.imgV.image = img;
}

@end
